<pro-header></pro-header>
<nz-card>
    <div nz-row style="margin-bottom: 10px;">
        <div nz-col [nzSpan]="6">
            <button nz-button routerLink="../addsetting" [nzType]="'primary'">新增</button>
        </div>
    </div>
    <nz-table #nzTable [nzAjaxData]="data" [nzIsPagination]=false (nzPageIndexChange)="getlist($event)">
        <thead nz-thead>
        <tr>
            <th nz-th><span>序号</span></th>
            <th nz-th><span>标题</span></th>
            <th nz-th><span>报名费</span></th>
            <th nz-th><span>培训费用</span></th>
            <th nz-th><span>总费用</span></th>
            <th nz-th><span>类型</span></th>
            <th nz-th><span>操作</span></th>
        </tr>
        </thead>
        <tbody nz-tbody>
        <tr nz-tbody-tr *ngFor="let item of nzTable.data; let i = index;">
            <td nz-td>{{i+1}}</td>
            <td nz-td>{{item['titile']}}</td>
            <td nz-td>{{item['signupPrice']}}</td>
            <td nz-td>{{item['trainePrice']}}</td>
            <td nz-td>{{item['totalPrice']}}</td>
            <td nz-td>{{item['type']}}</td>

            <td nz-td>
                <a [routerLink]="['../addsetting',item.id]">编辑</a>
                <span nz-table-divider></span>
                <a (click)="del(item)">删除</a>
            </td>
        </tr>

        </tbody>
    </nz-table>
</nz-card>
